<!--
  文件描述：流程图
-->
<template>
  <div>
    <process ref="processCom" :process-data="processData" :disabled="disabled" />
  </div>
</template>
<script setup>
import { ref, watch } from 'vue'
import process from '@/view/workflow/config/components/process.vue'

const props = defineProps({
  initData: {
    type: Object,
    default: {}
  },
  disabled: {
    type: Boolean,
    default: false
  }
})
watch(() => props.initData,
  (newInitData) => {
    processData.value = newInitData
  }
)
const processData = ref(null)
const processCom = ref(null)

defineExpose({
  processCom // 暴露流程图组件（孙）
})

</script>
<style scoped lang="less">
@import '@/view/workflow/config/components/index.less';
</style>